package cliente;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.HashMap;
import comum.CartaComum;
import comum.Cliente;
import comum.Mesa;
import java.util.HashSet;
import java.util.LinkedHashSet;



public class ClienteImpl  extends UnicastRemoteObject implements Cliente{

	/**
	 * 
	 */
	private static final long serialVersionUID = -8852419078107428526L;

	/**
	 * 
	 */
	public ClienteImpl() throws RemoteException {
		super();
		// TODO Auto-generated constructor stub
	}

	public void atualizarMesa(Mesa mesa) throws java.rmi.RemoteException {
		// TODO Auto-generated method stub
		
	}

	public void iniciarPartida(Mesa mesa) throws java.rmi.RemoteException {
		System.out.println("PARTIDA INICIADA");
		
	}

	public void notificarDesconexao() throws java.rmi.RemoteException {
		// TODO Auto-generated method stub
		System.out.println("ME DESCONECTARAM!");
	}

	public void notificarErroDeConexao() throws java.rmi.RemoteException {
		System.out.println("ERRO DE DESCONEXAO");
	}

	public void notificarEspera(HashSet<String> jogadores) throws java.rmi.RemoteException  {
		System.out.println("ESPERA NOTIFICADA "+this);
		
	}

	public void registrarMaoDeCartas(LinkedHashSet<CartaComum> mao) 
	throws java.rmi.RemoteException {
		System.out.println("MAO DE CARTAS REGISTRADA");
		
	}

	public void terminarPartida(Mesa mesa, HashMap<String, Integer> ranking) 
	throws java.rmi.RemoteException {
		// TODO Auto-generated method stub
		
	}

//    public void notificarEspera(HashSet<String> jogadoresConectados) throws RemoteException {
//        throw new UnsupportedOperationException("Not supported yet.");
//    }
//
//    public void registrarMaoDeCartas(LinkedHashSet<CartaComum> mao) throws RemoteException {
//        throw new UnsupportedOperationException("Not supported yet.");
//    }
	

}
